package com.bd.scm.domain.dto.card;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yufc
 */
@ApiModel(value="打卡记录")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CardRecordViewDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty( value = "工号", notes = "工号", dataType = "Date", position = 1)
    private String userNo;

    @ApiModelProperty( value = "姓名", notes = "姓名", dataType = "Date", position = 2)
    private String userName;

    @ApiModelProperty( value = "部门", notes = "部门", dataType = "Date", position = 3)
    private String depName;

    @ApiModelProperty( value = "打卡时间", notes = "打卡时间", dataType = "Date", position = 4)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sj;

    @ApiModelProperty( value = "打卡方式", notes = "打卡方式", dataType = "String", position = 5)
    private String modeName;

    @ApiModelProperty( hidden = true , position = 11)
    private Integer userSerial;

    @ApiModelProperty( hidden = true , position = 12)
    private Integer whetherValidity;

    @ApiModelProperty( hidden = true , position = 13)
    private String pcIp;

    @ApiModelProperty( hidden = true , position = 14)
    private String pcName;

}